<%--
********************************************************************************
    Document   : pnCitas
    Created on : 17/10/2010, 09:46:31 AM
    Author     : JAPeTo
********************************************************************************
--%>
<%@ page contentType="text/html"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<html>
<body>
    <rich:layout>
        <rich:layoutPanel position="left" width="20%">
            <%--<h:graphicImage value="images/thumbails/citaIcon.png"/><br/>--%>
            <center><object width="200" height="200">
                    <param name="movie" value="Recursos/reloj.swf">
                <embed src="Recursos/reloj.swf" width="200" height="200">
                </embed>
            </object>
            </center><br/>
            <h:outputText value="Calendario de citas"/>
            <rich:calendar popup="false" showWeekDaysBar="false" showFooter="false" ajaxSingle="true"/><br/>
            <rich:calendar popup="false"/>
        </rich:layoutPanel>
        <rich:layoutPanel position="right" width="80%">
        <h1>Panel de Citas</h1>
        <rich:panel>
            <f:facet name="header">
                <h:outputText value="Terapias para hoy"></h:outputText>
            </f:facet>
            <h:form>
                <b><h:outputText value="Usted no posee citas para hoy" rendered="#{empty CitaBean.citas}" /><b/>
                <rich:dataGrid value="#{CitaBean.citas}"  rendered="#{not empty CitaBean.citas}" var="citas" columns="3" elements="6" width="100%">
                    <rich:panel bodyClass="pbody">
                        <f:facet name="header">
                            <h:outputText value="#{citas.idTerapia}"></h:outputText>
                        </f:facet>
                        <h:panelGrid columns="2">
                            <h:outputText value="Paciente:" styleClass="label"></h:outputText>
                            <h:commandLink value="#{citas.pacienteId}" />
                            <%--<h:outputText value="Fisioterapeuta:" styleClass="label"></h:outputText>
                            <h:commandLink value="#{citas.fisioId}" />--%>
                            <h:outputText value="Video:" styleClass="label"></h:outputText>
                            <h:commandLink value="#{citas.urlVideo}" />
                            <h:outputText value="Hora:" styleClass="label"></h:outputText>
                            <h:outputText value="#{citas.horaTerapia}" />
                            <%--<h:commandButton value="Iniciar" onclick="return false;" action="#{TerapiaBean.startTerapia(citas)}"/>--%>
                        </h:panelGrid>
                </rich:panel>
                <f:facet name="footer">
                    <rich:datascroller></rich:datascroller>
                </f:facet>
            </rich:dataGrid>
        </h:form>
        </rich:panel>
        </rich:layoutPanel>
    </rich:layout>
</body>
</html>